<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://ajaxtags.org/tags/ajax" prefix="ajax"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<jsp:include page="/jsp/include/header.jsp" flush="true" />
<div id="topOrange"></div>
<div id="topHeader">
	<div id="textFaoLogo"><a href="http://www.fao.org" title="Food and Agriculture of the United Nations home page" onclick="window.open(this.href);return false"><img src="<%=request.getContextPath()%>/img/fao_logo.gif" alt="FAO Logo" class="floatLeft" /></a><p>FOOD AND AGRICULTURE OF THE UNITED NATIONS<br />

<span class="italicText">helping to build a world without hunger</span></p>
	</div>
</div>
<div id="wrapper"><!--width 792px-->
 <img src="<%=request.getContextPath()%>/img/Small_bee_headDown.jpg" alt="Bee" id="bee" />
  <!--start  horizontal navigation -->
  <div id="menu">
   <ul>
    <li><a href="../index_en.html" title="Pollination Services">HOME</a> | </li>
    <!-- <li><a href="tools.html" title="Tools and Methods">TOOLS AND METHODS</a> | </li>  -->
    <li><a href="../studies.html" title="Case Studies">CASE STUDIES</a> | </li>
    <li><a href="../documents.html" title="Documents">DOCUMENTS</a> | </li>
    <li class="languageMenu"><a href="#">Español</a></li>
    <li class="languageMenu"><a href="#">Français</a>&nbsp;&nbsp;|</li>
   </ul>
   
  </div>  
  <div id="pimsButton">
   <ul>
   	<li><a href="<%=request.getContextPath()%>" title="Pollination Information Management System" class="current">POLLINATION INFORMATION MANAGEMENT SYSTEM [PIMS]</a></li>
   </ul>
  </div><!--end  horizontal navigation -->

  
  <div id="leftCol">
  <!--left menu-->
   <ul>
    <li class="first">PIMS QUESTIONS</li>
    <li><a href="<%=request.getContextPath()%>/pollinationNeeds.do">What are the pollination needs of a particular crop?</a></li>
    <li><a href="<%=request.getContextPath()%>/book.do">What is the current understanding of managing pollination of a particular crop?</a></li>
    <li><a href="<%=request.getContextPath()%>/references.do">What studies have been carried out on the pollination of this crop?</a></li>
    <li class="current" id="active">What is known about the pollinators of this crop?</li>
	<!-- 
    <li><a href="pesticide_impacts.html">What is known about pesticide impacts on pollinators?</a></li>
    <li><a href="poll_friendly.html">What pollinator-friendly practices can promote the conservation and management of these pollinators?</a></li>
     -->
   </ul> 
   <!--endleft menu-->
   
   <!--Search
   <form action="" id="searchForm">
   		<input type="text" name="search" id="searchInput"/>
     	<input name="searchBotton" id="searchBotton" type="image" value="Register" src="img/darksearch_bott.gif" />
   </form>-->
      
  </div>
  <!--end  left div -->
  
  <div id="rightCol">
   <h1>What is known about the pollinators of this crop?</h1>
   <h2>Plant-pollinator interactions</h2>
       <p>To access information about wild pollinator species of crops, and their natural history, enter the name of a crop or pollinator below.</p>
      
      <!--start form-->
  <form action="${contextPath}/speciesInteraction.do" id="query" id=>
  	<label>Enter name of crop or pollinator (common or scientific name):</label>
    <input id="name" name="name" type="text" size="60" />
    <input id="scientificName" name="scientificName" type="text" size="60" style="display:none;"/>
    <span id="indicator" style="display:none;"><img src="${contextPath}/img/indicator.gif" /></span>
    <input name="submitBotton" id="submitBotton" type="image" value="" src="<%=request.getContextPath()%>/img/submit_botton.gif" />

    <!-- 

  <form action="${contextPath}/speciesInteraction.do" class="basicForm">
    <table>
    	<tr><td><label>Enter name of crop or pollinator (common or scientific name):</label></td></tr>
    	<tr><td><input id="name" name="name" type="text" size="40" /><tr><td>
    </table>
    
    <span id="indicator" style="display:none;"><img src="${contextPath}/img/indicator.gif" /></span>
    <label for="make">Common name:</label>
    <input id="commonName" name="commonName" type="text" size="40" />
    <input type="submit" value="Submit">
     -->
   </form>

   <!--end form-->

   <!--query result-->
   <div id="result">
   <b><html:errors/></b>
   
   <p>
   	<h1><bean:write name="speciesform" property="name"/></h1>
   </p>
   
   <logic:present name="species">
   
	   <p>
	   <logic:notEqual name="species" property="associations" value="">
	   <ul>
	   <LI><H4><bean:message key="speciesInteractions.spmCategory.associations"/></H4></LI>
	   	<LI><bean:write name="species" property="associations"/></LI> 
	   	</ul>
	   	</logic:notEqual>
	   	</p>
	   	
	   	<p>	   	
	   	<logic:notEqual name="species" property="cyclicity" value="">
	   	<ul>
	   	<li><h4><bean:message key="speciesInteractions.spmCategory.cyclicity"/></h4></li>
	   	<li><bean:write name="species" property="cyclicity"/></li> 
	   	</ul>
	   	</logic:notEqual>
	   	
	   	</p>
	   	
	   	<p>
	   	<logic:notEqual name="species" property="diseases" value="">
	   	<ul>
	   	<li><h4><bean:message key="speciesInteractions.spmCategory.diseases"/></h4></li>
	   	<li><bean:write name="species" property="diseases"/></li>
	   	</ul> 
	   	</logic:notEqual>
	   	</p>
	   	
	   	<p>
	   	<logic:notEqual name="species" property="dispersal" value="">
	   	<ul>
	   	<li><h4><bean:message key="speciesInteractions.spmCategory.dispersal"/></h4><li>
	   	<li><bean:write name="species" property="dispersal"/></li>
	   	</ul> 
	   	</logic:notEqual>
	   	</p>
	   	
	   	<p>
	   	<logic:notEqual name="species" property="distribution" value="">
	   	<ul>
	   	<li><h4><bean:message key="speciesInteractions.spmCategory.distribution"/></h4></li>
	   	<li><bean:write name="species" property="distribution"/></li>
	   	</ul> 
	   	</logic:notEqual>
	   	</p>
	   	
	   	<p>
	   	<logic:notEqual name="species" property="habitat" value="">
	   	<ul>
	   	<li><H4><bean:message key="speciesInteractions.spmCategory.habitat"/></H4></li>
	   	<li><bean:write name="species" property="habitat"/></li> 
	   	</ul>
	   	</logic:notEqual>
	   	</p>
	   	
	   	<p>
	   	<logic:notEqual name="species" property="lifeCycle" value="">
	   	<ul>
	   	<li><h4><bean:message key="speciesInteractions.spmCategory.lifeCycle"/></h4></li>
	   	<li><bean:write name="species" property="lifeCycle"/></li>
	   	</ul> 
	   	</logic:notEqual>
	   	</p>
	   	
	   	<p>
	   	<logic:notEqual name="species" property="lifeExpectancy" value="">
	   	<ul>
	   	<li><h4><bean:message key="speciesInteractions.spmCategory.lifeExpectancy"/></h4></li>
	   	<li><bean:write name="species" property="lifeExpectancy"/></li>
	   	</ul> 
	   	</logic:notEqual>
	   	</p>
	   	
	   	<p>	   	
	   	<logic:notEqual name="species" property="lookAlikes" value="">
	   	<ul>
	   	<li><h4><bean:message key="speciesInteractions.spmCategory.lookAlikes"/></h4></li>
	   	<li><bean:write name="species" property="lookAlikes"/></li>
	   	</ul> 
	   	</logic:notEqual>
	   </p>
	   
   </logic:present>
   
  
  
  
     <div  class="floatRight">
    
 	</div>

 
 
 
 </div><!--end query result-->
 
 <p class="note">We welcome contributions of information on species or interactions. Please send any relevant information to <a href="mailto:EmailAddress@F-A-O.org" title="Send a comment">the relevant information collector</a>.</p>

  </div><!--end rightCol div-->
  <div id="footer"><a href="http://www.fao.org/copyright_en.htm" onclick="window.open(this.href);return false" title="Copyright page"> ©2008 FAO - AGP</a> <!-- | <a href="#">Glossary</a> --></div>
</div><!--end wrapper div-->

<ajax:autocomplete
  source="name"
  target="commonName"
  baseUrl="${contextPath}/speciesAutocomplete.view"
  className="autocomplete"
  indicator="indicator"
  minimumCharacters="2"
   />	
<jsp:include page="/jsp/include/footer.jsp" flush="true" />